m=[5,1,3,2,4]
n=sorted(m)
m.sort()
print(m)
print(n)

# 数值排序
grade=[100,90,87,76,98]
print("原列表",grade)
grade.sort()
print("升序",grade)
grade.sort(reverse=True)
print("降序",grade)

# 字符串
char=["Angela","Tom","cat","pet"]
char.sort()
print("区分字母大小写：",char)
char.sort(key=str.lower)
print("不区分字母大小写：",char)